<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>用户更新</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" type="text/css" href="css/update_second.css">

    <script type="text/javascript" src="<%=basePath%>/jslib/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/register.js"></script>
    <link type="text/css" rel="stylesheet" href="css/smartmenu.css">
    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>
</head>

<body>
<%@ include file="/page/share/menu.jsp" %>
<div id="content" style="padding-top:10px;">
<form action="Person!updatePerson.action" method="post" style="text-align: center">
    <input type="hidden" value="${person.id}" name="id">
    <table align="center"  id="list">
        <thead>
        <tr>
            <td align="right">账号</td>
            <td align="left">
                <label>
                    <input type="text" name="userName" value="${person.userName}" disabled="disabled" size="15" class="input">
                </label>
            </td>
        </tr>
        <tr>
            <td align="right">密码</td>
            <td align="left">
                <label>
                    <input type="password" name="password" value="${person.password}" size="15" class="input">
                </label>
            </td>
            <td align="left">
                <div class="STYLE2">请输入密码</div>
            </td>
        </tr>
        <tr>
            <td align="right">邮箱地址：</td>
            <td align="left">
                <label>
                    <input type="text" name="email" value="${person.email}" id="Temail" class="input" onblur="Cemail()" class="input">
                </label>
            </td>
            <td align="left">
                <div class="STYLE2" id="Remail">请提供合法有效的电子邮箱地址</div>
            </td>
        </tr>
        <tr>
            <td align="right">手机号码：</td>
            <td align="left">
                <label>
                    <input type="text" name="phone" value="${person.phone}" id="Ttel" class="input" onblur="Ctel()" class="input">
                </label>
            </td>
            <td align="left">
                <div class="STYLE2" id="Rtel">请输入您的手机号</div>
            </td>
        </tr>
        <tr>
            <td align="right">信誉值</td>
            <td align="left">
                <label>
                    <input type="text" name="credit" value="${person.credit}" id="Tcredit" class="input"
                           onblur="Ccredit()" class="input">
                </label>
            </td>
            <td align="left">
                <div class="STYLE2" id="Rcredit">请输入信誉值</div>
            </td>
        </tr>
        <tr>
            <td align="right">等级</td>
            <td align="left">
                <label>
                    <input type="text" name="level" value="${person.level}" id="Tlevel" class="input" onblur="Clevel()" class="input">
                </label>
            </td>
            <td align="left">
                <div class="STYLE2" id="Rlevel">请输入等级</div>
            </td>
        </tr>
        <tr>
            <td align="right">账号状态</td>
            <td align="left">
                <label>
                    <select name="enabled" value="${person.enabled}" class="input">
                        <option value="true">
                            使用中
                        </option>
                        <option value="false">
                            停用
                        </option>
                    </select>
                </label>
            </td>
        </tr>
        <tr>
            <td align="right">
                权限
            </td>
            <td align="left">
                <label>
                    <select name="authority" class="input">
                        <option value="ROLE_STAFF">员工</option>
                        <option value="ROLE_USER" selected="selected">普通用户</option>
                        <option value="ROLE_MANAGE">经理</option>
                    </select>
                </label>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" name="stb" value="修改" id="stb" onfocus="this.blur();"
                       onclick="return ResultUpdate();" class="btn">

            </td>
        </tr>
        </thead>
    </table>

</form>
</div>
<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>
</body>
</html>